<%@ page language="java"  pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ include file="../include/taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<title>修改菜单</title>
  	<%@ include file="../include/jsCss.jsp" %>
  </head>
  <body>
      <form action="menu!menuSaveOrUpdate.html" method="post">
     <table border="1">
     	<tr>
     		<td colspan="2">
     			添加详细信息
     		</td>
     	</tr>
     	<tr>
     		<td>菜单名称：</td>
     		<td>
     			<input type="text" name="menuName" value="${menuName }"/> 
     			<input type="hidden" name="menuId" value="${menuId }">
     		</td>
     	</tr>
     	<tr>
			<td>排序号：</td>
			<td><input type="text" name="menuOrder" value="${menuOrder }"/> </td>
     	</tr>
     	<tr>
			<td>上级菜单：</td>
			<td> 
			
				<select name="parentId">
					<option value="0">&nbsp;&nbsp;</option>
					<s:iterator value="menuList" var="item"> 
						<s:if test="currentId != menuId"> 
							<s:if test="menuId == currentMenuId">
								<option value="${item.menuId }" selected="selected">${item.menuName }</option>	
							</s:if>
							<s:else>
								<option value="${menuId }">${menuName }</option>
							</s:else>
						</s:if>
					</s:iterator>
				</select> 
			 </td>
     	</tr> 
     	<tr>
			<td>菜单URL：</td>
			<td><input type="text" name="menuUrl" value="${menuUrl }"/> </td>
     	</tr> 
     	<tr>
			<td>状态：</td>
			<td>
				<select name="status">
					<option value="0" <s:if test="status == 0">selected="selected"</s:if>>有效</option>
					<option value="1" <s:if test="status == 1">selected="selected"</s:if>>无效</option>
				</select>
			</td>
     	</tr>
     	<tr>
     		<td colspan="2">
     		  <input type="submit" value="提交" /> 
     		  &nbsp;&nbsp;
     		  <input type="reset" value="重置" />
     	    </td>
     	</tr>
     </table>
     </form>
  </body>
</html>
